package com.sjgl.esdn.controller;


import com.sjgl.esdn.domain.AjaxResultESDN;
import com.sjgl.esdn.domain.entity.Dept;
import com.sjgl.esdn.service.DeptService;
import com.sjgl.esdn.service.LabelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 标签控制层
 *
 * @author 缪恒铭
 * @date 2022/10/17
 */
@RestController
@RequestMapping("/label")
public class LabelController {
    @Autowired
    LabelService labelService;

    /**
     * 获得标签列表
     *
     * @return {@code AjaxResultESDN}
     */
    @GetMapping("list")
    public AjaxResultESDN getLabelList(){
        AjaxResultESDN ajax = AjaxResultESDN.success();
        ajax.put(AjaxResultESDN.DATA_TAG,labelService.getLabelList());
        return ajax;
    }
}
